import Taro from '@tarojs/taro';
import { USER_STATUS } from '@CONSTANTS/profile'

export async function checkIsLogin() {
  const user = await Taro.getStorageSync('user')
  const { Status } = user
  return user && Status && Status !== USER_STATUS.Tentative
}
